if the last line of stackScript is "end lastlines" then
answer "It is infected! Working on disinfection."
put empty into found
repeat with i=(the number of lines of stackScript) down to 1
if (line i of stackScript) contains "on openbackground --merryxmas" then
put i into found
end if
end repeat
if found is empty then
answer "Sorry, this must be a mutation. I can't fight it."
else
repeat until found > (the number of lines of stackScript)
delete line found of stackScript
end repeat
set the script of this stack to stackScript
answer "This stack has been fixed."
end if
else
answer "This stack is Merry Christmas Virus free."
end if
pop card
unlock screen
set lockmessages to false
set lockrecent to false
set the userlevel to oldlevel
end mouseUp
-- part 2 (button)
-- low flags: 00
-- high flags: A003
-- rect: left=329 top=172 right=193 bottom=439
-- title width / last selected line: 0
-- icon id / first selected line: 0 / 0
-- text alignment: 1
-- font id: 0
-- text size: 12
-- style flags: 0
-- line height: 16
-- part name: Check me…
----- HyperTalk script -----
on mouseUp
put the script of this stack into stackScript
if the last line of stackScript is "end lastlines" then
answer "I am infected! Working on disinfection."
put empty into found
put (the number of lines of stackScript)
repeat with i=(the number of lines of stackScript) down to 1
if (line i of stackScript) contains "on openbackground --merryxmas" then
put i into found
end if
end repeat
if found is empty then
answer "Sorry, this must be a mutation. I can't fight it."
else
repeat until found > (the number of lines of stackScript)
delete line found of stackScript
end repeat
set the script of this stack to stackScript
answer "I have been fixed."
end if
else
answer "I am Merry Christmas Virus free."
end if
end mouseUp
-- part 3 (button)
-- low flags: 00
-- high flags: 0000
-- rect: left=472 top=315 right=342 bottom=511
-- title width / last selected line: 0
-- icon id / first selected line: 2478 / 2478
-- text alignment: 1
-- font id: 0
-- text size: 12
-- style flags: 0
-- line height: 16
-- part name:
----- HyperTalk script -----
on mouseUp
set the visible of cd fld "info" to not the visible of cd fld "info"
end mouseUp
-- part 4 (field)
-- low flags: 85
-- high flags: 2007
-- rect: left=43 top=23 right=315 bottom=495
-- title width / last selected line: 0
-- icon id / first selected line: 0 / 0
-- text alignment: 0
-- font id: 0
-- text size: 12
-- style flags: 0
-- line height: 16
-- part name: info
----- HyperTalk script -----
on mouseup
hide me
end mouseup
-- part contents for card part 4
----- text -----
Merry Christmas Killer is meant to kill the HyperCard virus known as "Merry Christmas," or "Merry Xmas."
This virus was named "Merry Christmas" due to its signature in several lines, "Merry Christmas." I assume it was named after a worm released several years ago, also named "Merry Christmas." Aside from the name, and parasitic task, they share almost nothing in common.
Except for noticable delays opening stacks and virulent spreading, "Merry Christmas" does not appear to be malicious.
Whoever programmed this virus, I would like to extend my heartfelt hatred toward you. You not only made my waste nearly a day programming this, but you also have released a harmful parasite into the Macintosh community. May you forever be doomed to use Windows.
To use Merry Christmas Killer, FIRST SELECT "DISINFECT" AND DISINFECT THE HOME FILE. If you do not do this step, every stack you disinfect has a good chance of immediately being reinfected. And that is not good.
Once you have done this, click "Check Me." This is also very important, because it makes sure that Merry Christmas Killer has not picked up the virus along the way. (It probably has.)
After this, you have only begun! Now "Disinfect" every stack you own. If you forget a stack that is infected, it will reinfect your Home stack, thus restarting the cycle over again! :-(
If Merry Christmas Killer has helped you stay virus-free, or if it has removed a virus from your system, please support shareware by sending $4 to:
John Stiles
8800 St. Cloud Ln.
Bakersfield, CA 93311
Please help to keep shareware alive! Shareware is one of the few remaining things where one person can make a serious difference.
If you come across a version of "Merry Christmas" that is either reported as a "mutation" or is not found at all by this stack, please tell me!